package tag23_11_08.date;

import java.util.Date;

public class UseDate {

	public static void main(String[] args) {
		
		
		Date date = new Date(0);
		System.out.println(date);
		
		date = new Date();
		System.out.println(date);
		
		Date damals = new Date(0);
		System.out.println( date.after(damals));
		System.out.println( date.before(damals));
		
		Comparable<Date> c1 = date;
		int erg = c1.compareTo(damals);
		System.out.println("Erg = " + erg);  //erg > 0
		
		long millis = date.getTime();
		
		System.out.println(date);
		date.setTime(0);
		System.out.println(date);

		
	}

}
